/**
 * 
 */
package com.apinoo.users.dao;

import java.util.List;

import com.apinoo.users.domain.Group;
import com.apinoo.users.domain.User;
import com.apinoo.users.dto.GroupDTO;
import com.apinoo.users.dto.UserDTO;

/**
 * @author Alejandro Pino Oreamuno
 *
 */
public interface GroupDAO {

	public void addGroup(GroupDTO dto);
	public void updateGroup(GroupDTO dto);
	public void deleteGroup(GroupDTO dto);
	public List<GroupDTO> getGroups(GroupDTO dto);
	public int countGroups(GroupDTO dto);
	public Group getGroupById(long id);
	public Group getUserByName(String name);
	public boolean groupNameExists(GroupDTO dto);
	public boolean authorityExists(GroupDTO dto);
}
